/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * BasedSettingPanel.java
 *
 * Created on 2011-4-22, 13:14:11
 */

package com.iduxs.collect.frame.system;

import com.iduxs.collect.utils.Utility;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;

/**
 *
 * @author Administrator
 */
public class BasedSettingPanel extends javax.swing.JPanel {

    /** Creates new form BasedSettingPanel */
    public BasedSettingPanel() {
        initComponents();
        init();
    }
    
    private void init() {
        BasedSetting bs = new BasedSetting();
        try {
            Utility.readXMLFile("BasedSetting.xml", bs);
            chapterDeleteSuffexText.setText(bs.getChapterDeleteSuffex());
            chapterSuffexText.setText(bs.getChapterSuffex());
            databaseStringText.setText(bs.getDatabaseString());
            debugModelBox.setSelected(bs.getDebugMode());
            fictionSystemBox.setSelectedItem(bs.getFictionSystem());
            fictionSystemVersion.setSelectedItem(bs.getFictionSystemVersion());
            httpTimeoutText.setValue(bs.getHttpTimeout());
            localAddressText.setText(bs.getLocalAddress());
            localCookiesText.setText(bs.getLocalCookies());
            logModelBox.setSelectedItem(bs.getLogModel());
            softSerialNoText.setText(bs.getSoftSerialNo());
            subSectionNameText.setText(bs.getSubSectionName());
            userAgentBox.setSelectedItem(bs.getUserAgent());
        } catch (Exception ex) {
            Logger.getLogger(BasedSettingPanel.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        localAddressText = new javax.swing.JTextField();
        selectLocalAddressButton = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        databaseStringText = new javax.swing.JTextField();
        mysqlDefaultButton = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        fictionSystemBox = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        fictionSystemVersion = new javax.swing.JComboBox();
        jLabel7 = new javax.swing.JLabel();
        softSerialNoText = new javax.swing.JTextField();
        debugModelBox = new javax.swing.JCheckBox();
        jLabel8 = new javax.swing.JLabel();
        chapterSuffexText = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        chapterDeleteSuffexText = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        subSectionNameText = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        userAgentBox = new javax.swing.JComboBox();
        jLabel12 = new javax.swing.JLabel();
        httpTimeoutText = new javax.swing.JSpinner();
        jLabel13 = new javax.swing.JLabel();
        localCookiesText = new javax.swing.JTextField();
        localCookiesButton = new javax.swing.JButton();
        jLabel14 = new javax.swing.JLabel();
        logModelBox = new javax.swing.JComboBox();
        saveButton = new javax.swing.JButton();
        resetButton = new javax.swing.JButton();

        setPreferredSize(new java.awt.Dimension(650, 390));

        jLabel1.setFont(new java.awt.Font("华文宋体", 0, 12));
        jLabel1.setText("本地网站目录");

        jLabel2.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel2.setForeground(new java.awt.Color(255, 0, 51));
        jLabel2.setText("需要重启采集器");

        selectLocalAddressButton.setFont(new java.awt.Font("宋体", 0, 12));
        selectLocalAddressButton.setText("选择目录");
        selectLocalAddressButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                selectLocalAddressButtonActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel3.setText("数据库连接字符串");

        jLabel4.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel4.setForeground(new java.awt.Color(255, 0, 51));
        jLabel4.setText("需要重启采集器");

        mysqlDefaultButton.setFont(new java.awt.Font("宋体", 0, 12));
        mysqlDefaultButton.setText("MYSQL默认字符串");
        mysqlDefaultButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mysqlDefaultButtonActionPerformed(evt);
            }
        });

        jLabel5.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel5.setText("入库小说系统");

        fictionSystemBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "jieqi", "guanguan", "huoche" }));
        fictionSystemBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fictionSystemBoxActionPerformed(evt);
            }
        });

        jLabel6.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel6.setText("小说系统版本");

        fictionSystemVersion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1.6", "1.7", "1.8" }));
        fictionSystemVersion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fictionSystemVersionActionPerformed(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel7.setText("软件序列号");

        debugModelBox.setFont(new java.awt.Font("宋体", 0, 12));
        debugModelBox.setText("Debug模式");

        jLabel8.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel8.setText("图片章节后辍");

        jLabel9.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel9.setText("图片章节需要删除的后辍");

        jLabel10.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel10.setText("默认分卷名");

        jLabel11.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel11.setText("Http UserAgent");

        userAgentBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel12.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel12.setText("HTTP超时（秒）");

        jLabel13.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel13.setText("本地网站后台COOKIES(调用后台功能时使用，一般不用设置)");

        localCookiesButton.setFont(new java.awt.Font("宋体", 0, 12));
        localCookiesButton.setText("获取COOKIES");
        localCookiesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                localCookiesButtonActionPerformed(evt);
            }
        });

        jLabel14.setFont(new java.awt.Font("宋体", 0, 12));
        jLabel14.setText("日志记录模式");

        logModelBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        saveButton.setFont(new java.awt.Font("宋体", 0, 12));
        saveButton.setText("确定");
        saveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveButtonActionPerformed(evt);
            }
        });

        resetButton.setFont(new java.awt.Font("宋体", 0, 12));
        resetButton.setText("取消");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel1)
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel2))
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel3)
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel4))
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jLabel5)
                                                .addComponent(fictionSystemBox, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(9, 9, 9)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(fictionSystemVersion, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jLabel6))
                                            .addGap(12, 12, 12)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(softSerialNoText, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
                                                .addComponent(jLabel7)))
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(databaseStringText, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(localAddressText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 443, Short.MAX_VALUE)))
                                    .addGap(24, 24, 24)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(mysqlDefaultButton)
                                        .addComponent(selectLocalAddressButton)
                                        .addComponent(debugModelBox)
                                        .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                                        .addComponent(httpTimeoutText, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel14)
                                        .addComponent(logModelBox, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGap(38, 38, 38))
                        .addComponent(jLabel11)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(localCookiesText, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(localCookiesButton))
                                .addComponent(userAgentBox, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel8)
                                        .addComponent(chapterSuffexText, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(14, 14, 14)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel9)
                                        .addComponent(chapterDeleteSuffexText, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel10)
                                        .addComponent(subSectionNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addContainerGap(200, Short.MAX_VALUE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(saveButton)
                        .addGap(18, 18, 18)
                        .addComponent(resetButton)
                        .addGap(80, 80, 80))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(localAddressText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(selectLocalAddressButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(databaseStringText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(mysqlDefaultButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jLabel7)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fictionSystemBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(softSerialNoText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(debugModelBox)
                    .addComponent(fictionSystemVersion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chapterSuffexText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(chapterDeleteSuffexText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(subSectionNameText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(userAgentBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(httpTimeoutText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel13)
                            .addComponent(jLabel14))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(localCookiesText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(localCookiesButton)
                        .addComponent(logModelBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(resetButton)
                    .addComponent(saveButton))
                .addGap(25, 25, 25))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void selectLocalAddressButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selectLocalAddressButtonActionPerformed
        System.out.println("selectLocalAddressButtonActionPerformed");
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int result = fileChooser.showOpenDialog(this);
        if (result == JFileChooser.APPROVE_OPTION) {
            String path = fileChooser.getSelectedFile().getAbsolutePath();
            localAddressText.setText(path);
        }else {
            System.out.println("selectLocalAddressButtonActionPerformed close file chooser");
        }
    }//GEN-LAST:event_selectLocalAddressButtonActionPerformed

    private void mysqlDefaultButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mysqlDefaultButtonActionPerformed
        // TODO 数据库连接默认字符串（格式）
        databaseStringText.setText("");
    }//GEN-LAST:event_mysqlDefaultButtonActionPerformed

    private void fictionSystemBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fictionSystemBoxActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_fictionSystemBoxActionPerformed

    private void fictionSystemVersionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fictionSystemVersionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_fictionSystemVersionActionPerformed

    private void localCookiesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_localCookiesButtonActionPerformed
        localCookiesText.setText(Utility.getUserDir());
    }//GEN-LAST:event_localCookiesButtonActionPerformed

    private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveButtonActionPerformed
        BasedSetting bs = new BasedSetting();
        bs.setChapterDeleteSuffex(chapterDeleteSuffexText.getText().trim());
        bs.setChapterSuffex(chapterSuffexText.getText().trim());
        bs.setDatabaseString(databaseStringText.getText().trim());
        bs.setDebugMode(debugModelBox.isSelected());
        bs.setFictionSystem(fictionSystemBox.getSelectedItem().toString().trim());
        bs.setFictionSystemVersion(fictionSystemVersion.getSelectedItem().toString().trim());
        bs.setHttpTimeout(Integer.valueOf(httpTimeoutText.getValue().toString().trim()));
        bs.setLocalAddress(localAddressText.getText().trim());
        bs.setLocalCookies(localCookiesText.getText().trim());
        bs.setLogModel(logModelBox.getSelectedItem().toString().trim());
        bs.setSoftSerialNo(softSerialNoText.getText().trim());
        bs.setSubSectionName(subSectionNameText.getText().trim());
        bs.setUserAgent(userAgentBox.getSelectedItem().toString().trim());
        try {
            Utility.writeXMLFile("BasedSetting.xml", bs);
        } catch (Exception ex) {
            Logger.getLogger(BasedSettingPanel.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_saveButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField chapterDeleteSuffexText;
    private javax.swing.JTextField chapterSuffexText;
    private javax.swing.JTextField databaseStringText;
    private javax.swing.JCheckBox debugModelBox;
    private javax.swing.JComboBox fictionSystemBox;
    private javax.swing.JComboBox fictionSystemVersion;
    private javax.swing.JSpinner httpTimeoutText;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField localAddressText;
    private javax.swing.JButton localCookiesButton;
    private javax.swing.JTextField localCookiesText;
    private javax.swing.JComboBox logModelBox;
    private javax.swing.JButton mysqlDefaultButton;
    private javax.swing.JButton resetButton;
    private javax.swing.JButton saveButton;
    private javax.swing.JButton selectLocalAddressButton;
    private javax.swing.JTextField softSerialNoText;
    private javax.swing.JTextField subSectionNameText;
    private javax.swing.JComboBox userAgentBox;
    // End of variables declaration//GEN-END:variables

}
